#include "ihal.h"
#include "flash.h"
#include "msp430g2553.h"

/*FlashParams flashParams;

void StoreParams(void)
{
    uint8_t i;
    FLASH_Unlock(FLASH_MemType_Program);
    for(i=0; i<sizeof(flashParams); i++)
    FLASH_EraseByte(STORE_ADDRESS + i);
    for(i=0; i<sizeof(flashParams); i++)
    FLASH_ProgramByte(STORE_ADDRESS + i, *((uint8_t*)&flashParams + i));
    FLASH_Lock(FLASH_MemType_Program);
}

void FetchParams(void)
{
    uint8_t i;
    for(i=0; i<sizeof(flashParams); i++)
    *((uint8_t*)&flashParams + i)=FLASH_ReadByte(STORE_ADDRESS + i);
}*/